package com.yunti.springboot.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.tomcat.jni.Local;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

@Data
@TableName("myoption")
@Accessors(chain = true)
public class Option implements Serializable {
    /**  | 表字段 id */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**  | 表字段 elective_sub_id */
    private Integer electiveSubId;

    /**  | 表字段 stu_id */
    private Integer stuId;

    /**  | 表字段 semester */
    private Integer subId;

    /**  | 表字段 create_time */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDate createTime;

    /**  | 表字段 update_time */
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDate updateTime;
}
